const SQUELIZE_CONFIG =  require('../config/squelize').SQUELIZE_CONFIG
const Sequelize = require('sequelize')
const sequelize = new Sequelize(SQUELIZE_CONFIG)
sequelize.authenticate()
    .then(()=>{
            //console.log("数据库连接成功");
    })
    .catch(err =>{
        console.error("连接失败 错误信息 ：",err);
    })

module.exports = {
    Sequelize,
    sequelize
}